<template>
  <div class="workinfo-div">
      
      <div class="workinfo-desc">
          <el-tag effect="plain" type="warning">当前问题为{{workInfo.workType == 1?
              '文本题':'选择题'
              }}，
              问题具体描述如下：</el-tag>

          <el-divider></el-divider>

            <div v-html="workInfo.content">

            </div>

            <el-divider></el-divider>

      </div>
  </div>
</template>

<script>
export default {
    props:["workInfo"],
    data() {
        return {
            // workInfo: {
            //     content: "<p>hello word</p><p>这里是问题的具体内容</p><p>欢迎解答</p>",
            //     workType:1 ,//1是文本，2是选择
            //     isMuitlSelect:false,
            // },
        }
    }
}
</script>

<style>
.workinfo-div {
    margin: 1%;
}

.workinfo-desc {
    min-height:200px;
    /* background: tomato; */
}


</style>